﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace Golf.WebUI.App_code
{
    /// <summary>
    /// 客户登陆验证系统
    /// </summary>
    public class CurstomerLogin : System.Web.UI.Page
    {
        protected override void OnPreInit(EventArgs e)
        {
            Object obj = CookiesHelper.GetCookie("_Customer_id");
            if (obj == null || obj.ToString() == "")
            {
                Response.Write("window.location.href='http://" + HttpContext.Current.Request.Url.Host + "/index.aspx';</script>");
            }
        }
    }
}
